<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="com.login.entity.Users"%>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%
    Users user=(Users)session.getAttribute("user");
%>
  <head>
   
     
    <title>My JSP 'index.jsp' starting page</title>
   
  </head>
   
  <body>
    This is my JSP page. <br>
    welcome<%=user.getUsername() %>
  </body>
</html>